package com.huawei.appmarket.service.settings.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View.MeasureSpec;
import android.widget.RelativeLayout;
import o.epv;

public class IntroduceRelativeLayout extends RelativeLayout {
    private Context ˋ;

    public IntroduceRelativeLayout(Context context) {
        super(context);
        this.ˋ = context;
    }

    public IntroduceRelativeLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        this.ˋ = context;
    }

    public IntroduceRelativeLayout(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        this.ˋ = context;
    }

    protected void onMeasure(int i, int i2) {
        setMeasuredDimension(getDefaultSize(0, i), getDefaultSize(0, i2));
        int size = MeasureSpec.getSize(i);
        int measuredWidth = getMeasuredWidth();
        if (size >= measuredWidth) {
            size = measuredWidth;
        }
        super.onMeasure(MeasureSpec.makeMeasureSpec(size, 1073741824), MeasureSpec.makeMeasureSpec(epv.ॱ(this.ˋ) / 3, 1073741824));
    }
}
